﻿using MyProject.Entities.Config;
using MyProject.Services.MyNavigation;
using MyProject.Views.Auth;
using System.Windows;
using System.Windows.Navigation;

namespace MyProject
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private MyNavigationService _navigationService;
        public MainWindow()
        {
            AppConfig appConfig = AppConfig.getInstance();
            this._navigationService = new MyNavigationService();


            this.Title = appConfig.AppTitle;
            

            InitializeComponent();

            this._navigationService.setNavigationFrame(_mainFrame);
            this._navigationService.navigate(new AuthPage(_navigationService));
        }
    }
}